import request from "../utils/request";

export function getScheduleList(){
    return request.get('/schedule/list');
}

export function addSchedule(params){
    return request.post("/schedule/addSchedule",params);
}

export function deleteScheduleById(id){
    return request.delete(`/schedule/deleteScheduleById/${id}`);
}

export function getScheduleDetailById(id){
    return request.get(`/schedule/getScheduleDetailById/${id}`);
}

export function getMyScheduleList(){
    return request.get(`/schedule/getMyScheduleList`);
}

export function checkBoardroomSchedule(data) {
    console.log("检查会议室可用性参数",data)
  return request.post(`/schedule/checkBoardroomSchedule`, data);
}

export function getBoardroomSchedules(){
    return request.get(`/schedule/getBoardroomSchedules`);
}

export function updateSchedule(data){
    return request.put(`/schedule/updateSchedule`,data);
}
export function reminder(id){
    return request.post(`/schedule/reminder/${id}`);
}
